<script setup>

</script>

<template>
<!--  <nav>-->
<!--    &lt;!&ndash; 1 路由链接：是跳转到地址 &ndash;&gt;-->
<!--    <router-link to="/">Home</router-link> |-->
<!--    <router-link to="/about">About</router-link> |-->
<!--    <router-link to="/my">My</router-link>-->
<!--  </nav>-->
  <div>
    <nav>
      <router-link to="/register">注册</router-link> |
      <router-link to="/login">登录</router-link>
    </nav>
  </div>
  <!-- 2 路由占位符：用于显示不同组件 -->
  <router-view/>
</template>

<style lang="less">
#app {
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
